package cn.yourkingda.pojo;

import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Many;

public class Foodtype {
	@Column
	@Id
	private int id;
	@Column("foodtype_name")
	private String foodtypename;
	@Column("description")
	private String description;
	@Many(target=Food.class,field="typeid")
	private List<Food> foods;
	
	public List<Food> getFoods() {
		return foods;
	}
	public void setFoods(List<Food> foods) {
		this.foods = foods;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) { 
		this.id = id;
	}
	public String getFoodtypeName() {
		return foodtypename;
	}
	public void setFoodtypeName(String foodtypename) {
		this.foodtypename = foodtypename;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
}
